﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="news_queryset_list.aspx.cs" Inherits="Ccit.OA.NewsCenter.news_queryset_list" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.1" Namespace="DevExpress.Web.ASPxGridView"
    TagPrefix="dxwgv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>信息中心-快速查询列表</title>
    <script language="javascript" type="text/javascript">
      function doRemove(vClauseId)
      {
         if(confirm("确认删除吗?")){
           PageMethods.RemoveFastClause(vClauseId,ClientCallBack);
         }
      }
      function ClientCallBack(vResult)
      {
         eval("var objResult="+vResult);
         if(objResult.resSign > 0){
            alert(objResult.resMes);
         }else
         {
            alert(objResult.resMes);
         }
         var vPageParam = "PageSource="+$get("_hidPageSource").value+"&Type="+$get("_hidType").value+"&TABID="+document.getElementById("_hidTabId").value;
		 var encodeParam = base64encode(vPageParam);
         parent.frames.document.location="news_queryset_frame.aspx?" + encodeParam;
      }
      function doLocation(vClauseId,vPageSource,vType)
      {
          var vPageParam = "clauseId="+vClauseId+"&PageSource="+vPageSource+"&Type="+vType+"&TABID="+document.getElementById("_hidTabId").value;
		  var encodeParam = base64encode(vPageParam);
          parent.frames[1].document.location="news_queryset_edit.aspx?" + encodeParam;
      }
    </script>
</head>
<body>
    <ccit:ActionForm id="form1" runat="server">
    <input type="hidden" value="" id="_hidPageSource" runat="server" />
    
    <input type="hidden" id="_hidTabId" runat="server" />
    
    <input type="hidden" value="" id="_hidType" runat="server" />
    <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server"></asp:ScriptManager>
     <table cellpadding="0" cellspacing="0" align="center" width="100%" border="0">
       <tr>
        <td>
        <dxwgv:ASPxGridView ID="gvFastClauseList" runat="server" KeyFieldName="ClauseId" 
                Width="100%" onhtmlrowcreated="gvFastClauseList_HtmlRowCreated">
           <Columns>
             <dxwgv:GridViewDataTextColumn FieldName="ClauseName" Width="70%" Caption="名称" VisibleIndex="1"  meta:resourcekey="GridViewDataTextColumnResource1">
                <HeaderStyle HorizontalAlign="center" />
                <CellStyle HorizontalAlign="center" Wrap="False"></CellStyle>
                <DataItemTemplate>
                  <nobr>
                    <a id="aEdit" runat="server" ></a>                   
                  </nobr>
                </DataItemTemplate>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataColumn Caption="操作" VisibleIndex="2"  Width="30%" 
                    meta:resourcekey="GridViewDataColumnResource1">
                   <HeaderStyle HorizontalAlign="center" />
                      <CellStyle HorizontalAlign="center"></CellStyle>
                        <DataItemTemplate>
                          <nobr>
                            <a id="del" runat="server" >删除</a>                   
                          </nobr>
                        </DataItemTemplate>
                 </dxwgv:GridViewDataColumn> 
                 
                 <dxwgv:GridViewDataColumn Caption="" VisibleIndex="3" FieldName="FuncType" Visible="false"
                    meta:resourcekey="GridViewDataColumnResource1">
                   <HeaderStyle HorizontalAlign="center" />
                      <CellStyle HorizontalAlign="center"></CellStyle>
                 </dxwgv:GridViewDataColumn>
           </Columns>
           <SettingsPager PageSize=13 Mode="ShowPager" AlwaysShowPager=true
                 FirstPageButton-Visible=true LastPageButton-Visible=true  
                 FirstPageButton-Image-AlternateText="" LastPageButton-Image-AlternateText="灏鹃〉"
                 NumericButtonCount=5  SEOFriendly="Disabled"
                 PrevPageButton-Visible="true" NextPageButton-Visible="true"
                 ShowSeparators=true Position="Bottom"></SettingsPager>
            <Styles>
                <Row CssClass=""></Row>
                <AlternatingRow  CssClass="" Enabled="true"/>
                <SelectedRow  CssClass=""></SelectedRow>                
            </Styles>
            <Settings ShowFilterRow="false" ShowPreview="True"/>
            <SettingsCustomizationWindow Enabled="true" />
        </dxwgv:ASPxGridView> 
         </td>
       </tr>
     </table>
    </ccit:ActionForm>
</body>
</html>
